package com.example.mybatisplusdemo.model;

import java.io.Serializable;

/**
 * @author Xu Haidong
 * @date 2018/3/29
 */
public class ApiResult implements Serializable{

    /**
     * 返回编码
     */
    private int code;

    /**
     * 返回提示
     */
    private String message;

    /**
     * 返回数据
     */
    private Object data;

    private ApiResult(){}

    public ApiResult(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
